﻿using DomainCommons.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAI.Domain.Entities
{
    /// <summary>
    /// 聊天提示列表
    /// </summary>
    public class ChatTip : ISoftDelete, IHasCreationTime, IHasDeletionTime
    {
        public int Id { get; set; }
        public Guid AppUserId { get; set; }
        public DateTime CreationTime { get; private set; }

        public DateTime? DeletionTime { get; private set; }
        public string? Title { get; set; }
        public string? Content { get; set; }

        public bool IsDeleted { get; private set; }

        public void SoftDelete()
        {
            this.IsDeleted = true;
            this.DeletionTime = DateTime.Now;
        }

        public ChatTip(string title,string content) 
        {
            this.Title = title;
            this.Content = content;
        }
    }
}
